<template>
        <n-config-provider :theme-overrides="themeOverrides" :locale="zhCN" :date-locale="dateZhCN">
<!--            <n-theme-editor>-->
                <n-dialog-provider>
                    <n-message-provider>
                      <n-notification-provider>
                        <n-loading-bar-provider>
                            <index/>
                        </n-loading-bar-provider>
                      </n-notification-provider>
                    </n-message-provider>
                </n-dialog-provider>
<!--            </n-theme-editor>-->
        </n-config-provider>
</template>

<script setup>
import {zhCN, dateZhCN} from 'naive-ui'
import {NConfigProvider} from 'naive-ui'
import Index from "@/Index.vue";
import {useTitle} from "@vueuse/core";
import {SERIES, TITLE} from "@/assets/server";

let primaryColor = (transparency) => `rgba(224,98,13,${transparency})`
const themeOverrides = {
    // common: {
    //     primaryColor: primaryColor(0.9),
    //     primaryColorHover: primaryColor(0.7),
    //     primaryColorPressed:primaryColor(1)
    // },
}

const title = useTitle("数据采集与应用分析数智化平台")
title.value = TITLE // 改变title

</script>

<style scoped>

</style>
